#include <54func.h>
int main(int argc,char *argv[])
{
    //./1_binary_read   -->  读文件
    ARGS_CHECK(argc,2);
    int fd = open(argv[1],O_RDONLY);
    ERROR_CHECK(fd,-1,"open");

    int i;
    read(fd,&i,sizeof(i));
    printf("i = %d\n",i);
    close(i);
    return 0;
}
